package com.xiaoze.springcloud.entity;

import lombok.Data;
import java.io.Serializable;
import java.util.Collections;
import java.util.List;

/**
 *
 * Page
 *
 * @author xiaoze
 * @date 2018/6/8
 *
 */

@Data
public class Page<T> implements Serializable {

    private static final long serialVersionUID = -5832154734512599075L;

    /**
     * 查询数据列表
     */
    private List<T> records = Collections.emptyList();

    /**
     * 总数
     */
    private long total = 0;
    /**
     * 每页显示条数，默认 10
     */
    private long size = 10;

    /**
     * 当前页
     */
    private long current = 1;


}
